import { configureStore } from '@reduxjs/toolkit'
import user from './modules/user'
import cart from './modules/cart'

const store = configureStore({
  reducer: {
    user,
    cart
  }
})

export type RootState = ReturnType<typeof store.getState>

export default store
